import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';

/**
 * 生成reducer
 * @param {any} asyncReducers 异步reducer
 */
export const rootReducer = (asyncReducers?: any) => {
  return combineReducers({
    ...asyncReducers,
    router: routerReducer
  });
};

export default rootReducer;
